package com.hpeu_01.day0107.homework;

public class PersonDemo {
    public static void main(String[] args) {
        System.out.println("以下是乒乓球运动员:");
        PingpongAthlete pingpongAthlete = new PingpongAthlete("张继科",30);
        System.out.println(pingpongAthlete.getName()+"---"+pingpongAthlete.getAge());
        pingpongAthlete.eat();
        pingpongAthlete.sleep();
        pingpongAthlete.study();
        pingpongAthlete.english();
        System.out.println("-------------------");
        PingpongCoach pingpongCoach = new PingpongCoach("里斯",40);
        System.out.println("以下是乒乓球教练:");
        System.out.println(pingpongCoach.getName()+"---"+pingpongCoach.getAge());
        pingpongCoach.eat();
        pingpongCoach.sleep();
        pingpongCoach.teaching();
        pingpongCoach.english();
        System.out.println("-------------------");
        System.out.println();

        System.out.println("以下是篮球运动员:");
        BasketballAthlete basketballAthlete = new BasketballAthlete("库里",30);
        System.out.println(basketballAthlete.getName()+"---"+basketballAthlete.getAge());
        basketballAthlete.eat();
        basketballAthlete.sleep();
        basketballAthlete.study();
        System.out.println("-------------------");
        BasketballCoach basketballCoach = new BasketballCoach("姚明",40);
        System.out.println("以下是篮球教练:");
        System.out.println(basketballCoach.getName()+"---"+basketballCoach.getAge());
        basketballCoach.eat();
        basketballCoach.sleep();
        basketballCoach.teaching();
    }

}
